package cn.lili.controller.feign.member;

import cn.lili.modules.member.client.MemberEvaluationStatisticsClient;
import cn.lili.modules.member.service.MemberEvaluationStatisticsService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author paulG
 * @since 2022/6/24
 **/
@RestController
@RequiredArgsConstructor
public class MemberEvaluationStatisticsFeignController implements MemberEvaluationStatisticsClient {

    private final MemberEvaluationStatisticsService memberEvaluationStatisticsService;

    @Override
    public long todayMemberEvaluation() {
        return memberEvaluationStatisticsService.todayMemberEvaluation();
    }

    @Override
    public long getWaitReplyNum(String storeId) {
        return memberEvaluationStatisticsService.getWaitReplyNum(storeId);
    }
}
